import request from '@/utils/request'

export function clinicInfo(data) {
  return request({
    url: '/clinic/info',
    method: 'post',
    data
  })
}

export function eidtClinic(data) {
  return request({
    url: '/clinic/info/manager',
    method: 'post',
    data
  })
}

export function addClinic(data) {
  return request({
    url: 'clinic/info/add',
    method: 'post',
    data
  })
}

/*获取门诊列表*/
export function searchClinic(data) {
  return request({
    url: 'clinic/list',
    method: 'post',
    data
  })
}

/*获取门诊授权列表*/
export function grantClinic(data) {
  return request({
    url: 'sys/clinic/perm/grant',
    method: 'post',
    params: data
  })
}
/*编辑门诊权限列表*/
export function grantClinicPerm(data) {
  return request({
    url: 'sys/clinic/perm/edit',
    method: 'post',
    data
  })
}
